<?php
/**
 * 用户表数据模型
 *
 * @copyright www.locojoy.com
 * @author lihuixu@joyogame.com/xu.lihui@qq.com
 * @version v1.0 2015.3.25
 *
 */
class User_model extends MY_Model
{
	protected $table = 'user';
	protected $primaryKey = 'user_id';
	protected $multipleSite = true;
	protected $timestamps = false;
	
	public function __construct()
	{
	    parent::__construct();
		$this->load->model('User_attribute_model');
	}
	
	public function getInfoRelation($info)
	{
		$info['attribute'] = $this->User_attribute_model->getInfoByAttribute(array('user_id' => $info['user_id']));
		
		return $info;
	}
	
}